<#noparse>
<template>
    <div class="container">
        <a-form layout="inline" :model="query" @submit="handleQuery">
            <a-form-item>
                <a-button type="primary" @click="handleQuery">
                    <Icon icon="SearchOutlined" />查询
                </a-button>
            </a-form-item>
        </a-form>
    </div>
</template>
</#noparse>


<#noparse>
<script setup lang="ts">
</#noparse>
import { ref } from 'vue';
// Component
import Icon from '@/component/common/Icon.vue';
// Model
import { ${obj.classPrefix}Query } from '@/model/${obj.relativePath}';
// Plugin
import { Bus, BusEvent } from '@/plugin';

const query = ref(new ${obj.classPrefix}Query());

const handleQuery = () => {
    Bus.emit(BusEvent.REFRESH_${obj.objectPrefix?upper_case});
}
<#noparse>
</script>
</#noparse>

<#noparse>
<style lang="less" scoped>
</style>
</#noparse>
